package com.alsyun.common.vo;

import com.alsyun.common.utils.Base64DecodeMultipartFile;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.InputStream;

/**
 * ©️ByteTube 2022-2024
 *
 * @author mark
 * @CreateTime: 2024-10-23
 * @Description:序列化的input steam
 **/
@Data
@NoArgsConstructor
public class SerializableStream {
    private String base64;

    public SerializableStream (InputStream inputStream){
        this.base64= Base64DecodeMultipartFile.inputStreamToStream(inputStream);
    }
}
